<%@page language="java" pageEncoding="UTF-8"
	contentType="text/html; charset=UTF-8"%>
<%@ include file="/view/common/taglib.jsp"%>
<%@ include file="/view/common/variable.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%@ include file="/view/common/head.jsp"%>
<meta name="keywords" content="学而阅读,小说网,原创小说网" />
<meta name="description"
	content="学而阅读,最热门的免费小说网站,提供武侠仙侠,奇幻玄幻,科幻灵异,都市言情,穿越女频,青春校园,历史军事,网游竞技,职业官场等网络热门的书籍下载跟阅读！" />
<title>学而阅读作家后台</title>
<link rel="stylesheet" href="<%=path%>/css/style.css" />
<script type="text/javascript" src="<%=path%>/js/base.js"></script>
</head>

<body ng-app="myApp" ng-controller='ShowController'>
	<%@ include file="/view/common/header.jsp"%>
	<div class="content clearfix">
		<%@ include file="/view/common/left.jsp"%>
		<!--右边-->
		<div class="right r">
			<div class="path">
				作品管理 > <span>作品列表</span>
			</div>

			<div class="editnav">
				<ul>
					<li><a href="<%=path%>/book/detail?bookId=${bookId}">作品设置</a></li>
					<li><a href="<%=path%>/chapter/draftList?bookId=${bookId}">草稿箱</a></li>
					<li class="editnavo"><a
						href="<%=path%>/chapter/publishList?bookId=${bookId}">已发布章节</a></li>
				</ul>
				<a href="<%=path%>/chapter/add?bookId=${bookId}" class="addedit"><img
					src="<%=path%>/image/xzzj.png" /></a>
			</div>

			<!--已发布章节-->
			<div class="draftsdet">
				<div class="dsear">
					<input type="text" placeholder="请输入作品名称" /><span><img
						src="<%=path%>/image/sear.png" /></span>
				</div>
				<div class="fbtable">
					<table cellspacing="0" cellpadding="0" border="0" width="100%">
						<tr>
							<th>章节名称</th>
							<th width="130">是否付费</th>
							<th width="130">章节字数</th>
							<th width="180">预定发布时间</th>
							<th width="160">创建时间</th>
							<th width="100">操作</th>
						</tr>

						<c:forEach items="${bookChapterList}" var="bookChapter"
							varStatus="status">
							<tr>
								<td class="dtitle">${bookChapter.chapterName}</td>
								<td><c:if test="${bookChapter.chapterFree==1}">
										<font style="color: green;">免费</font>
									</c:if> <c:if test="${bookChapter.chapterFree==2}">
										<font style="color: red;">付费</font>
									</c:if> <c:if test="${bookChapter.chapterFree==0}">
										<font style="color: silver;">未知</font>
									</c:if></td>
								<td>${bookChapter.chapterWords}</td>
								<td>暂未开放</td>
								<td><fmt:formatDate value="${bookChapter.chapterDate}"
										pattern="yyyy-MM-dd HH:mm:ss" /></td>

								<td><c:if test="${bookChapter.isEnableEdit==1}">
										<a
											href="${path}/chapter/editPublish?bookId=${bookId}&chapterId=${bookChapter.chapterId}&lastPageNo=${page.pageNo}">编辑</a>
									</c:if> <c:if test="${bookChapter.isEnableEdit!=1}">
										<a style="cursor: default; opacity: 0.2">编辑</a>
									</c:if>&nbsp;|&nbsp;<a
									href="${path}/chapter/review?bookId=${bookId}&chapterId=${bookChapter.chapterId}"
									target="_blank">预览</a></td>

							</tr>
						</c:forEach>


					</table>
				</div>
				<!--已发布章节-->
				<div>
					<page:page pageSize="${page.limit}" pageNo="${page.pageNo}"
						url="${path}/chapter/publishList?bookId=${bookId}"
						recordCount="${recordCount}" />
				</div>
			</div>

		</div>
		<!--右边-->
	</div>

</body>
</html>